package com.ssmdemo.service;

//import com.github.pagehelper.PageInfo;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ssmdemo.dao.BaseMapper;
import com.ssmdemo.dao.DeptMapper;
import com.ssmdemo.pojo.Dept;

import java.util.List;


public interface DeptService extends IService<Dept> {


    Page selectDeptPage(Page page);

    /**
     * 查询子部门
     * @param id
     * @return
     */
    List<Dept> getDeptListByPerentId(Integer id);

    int insertDept(Dept dept);
    int updateDept(Dept dept);
}
